package com.ly.heart.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Accessors ( chain = true )
@Data
@ApiModel ( "拉取金蝶基础数据公共对象" )
public class BaseRemoteBo {

    @ApiModelProperty ("表单id")
    private String FormId;

    @ApiModelProperty ( "需查询的字段key集合，字符串类型，格式：\"key1,key2,...\"（必录） 注（查询单据体内码,需加单据体Key和下划线,如：FEntryKey_FEntryId）" )
    private String FieldKeys;

    @ApiModelProperty ( "过滤条件，数组类型，如：[{\"Left\":\"(\",\"FieldName\":\"Field1\",\"Compare\":\"67\",\"Value\":\"111\",\"Right\":\")\",\"Logic\":\"0\"},{\"Left\":\"(\",\"FieldName\":\"Field2\",\"Compare\":\"67\",\"Value\":\"222\",\"Right\":\")\",\"Logic\":\"0\"}]" )
    private List<String> FilterString;

    @ApiModelProperty ("排序字段，字符串类型（非必录）")
    private String OrderString;

    @ApiModelProperty ("返回总行数，整型（非必录）")
    private Integer TopRowCount = 0;

    @ApiModelProperty ("开始行索引，整型（非必录）")
    private Integer StartRow = 0;

    @ApiModelProperty ("最大行数，整型，不能超过10000（非必录）")
    private Integer Limit = 2000;

    @ApiModelProperty ("表单所在的子系统内码，字符串类型（非必录")
    private String SubSystemId;


}
